package com.demo.mapper.riot;

import com.demo.entity.riot.RankEntry;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface RankMapper {
    Boolean hasRankEnty(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid);
    List<RankEntry> getRankEntries(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid);
    void insertRankEntries(@Param("puuid") String puuid, @Param("entries") List<RankEntry> rankEntries);
    List<LocalDateTime> getLastUpdate(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid);
    void updateRankEntries(@Param("serverRegion") String serverRegion, @Param("puuid") String puuid, @Param("entry") RankEntry rankEntry);
}
